package com.gcxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gcxy.dto.role.RolePageDTO;
import com.gcxy.entity.Resource;
import com.gcxy.entity.ResourceRole;
import com.gcxy.entity.Role;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author pep7chiao
 * @since 2022-09-27
 */
public interface ResourceRoleMapper extends BaseMapper<ResourceRole> {

    List<Resource> selectResourceByRoleIds(List<Integer> roleIds);

    List<Resource> selectResourceByRoleId(Integer roleId);

    List<Role> selectRoleByResourceId(Integer resourceId);

    List<Role> selectResourceRolesPageByCondition(RolePageDTO rolePageDTO);
}
